/*
#include <ctime>
#include <stdlib.h>
#include <iostream>
#include <chrono>
#include <cmath>
using namespace std;
using namespace chrono;
inline unsigned int test(unsigned int a, unsigned int b) {
	unsigned int c = a / b;
	unsigned int d = a % b;
	return c + d;
}
inline uint64_t getNowTimeNsChrono()
{
	auto val = system_clock::now();
	return duration_cast<nanoseconds>(val.time_since_epoch()).count();
}
#define rangetime 6
int main() {
	
	uint64_t a, b;
	unsigned long long timemax = ULLONG_MAX;
	unsigned long long time;
	unsigned int c = 0;
	unsigned int d = 0;
	unsigned long long e = 0;
	unsigned long long cmin;
	for(d=1;d<=128;d++){
		srand(getNowTimeNsChrono());
		a = getNowTimeNsChrono();
		for (int i = 0; i < pow(10,rangetime); i++) {
			c = rand();
			e += test(c, d);
		}
		b = getNowTimeNsChrono();
		time = (b - a);
		std::cout << time << std::endl;
		if (time < timemax) {
			time = timemax;
			cmin = d;
		}
	}
	std::cout << cmin << std::endl;
	system("pause");
}
*/